package cards;

import model.Board;
import model.Player;

public class ReceiveBirthday extends Receive {
	
	public ReceiveBirthday(String text, int amount) {
		super(text, amount);
	}
	
	@Override
	public void execute(Player player){
		for(Player p : Board.players){
			if(p != null && !p.equals(player)){
				p.transfer(player, this.amount);
			}
		}
	}
} 